// 校验邮箱格式
export function checkEmail(email) {
  const reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/
  return reg.test(email)
}
// 密码长度校验
export function checkPassword(password) {
  const res = password.length
  const regEng = /[A-Za-z]/g
  const regNum = /[0-9]/g
  return regEng.test(password) && regNum.test(password) && res > 5
}
// 验证码长度校验
export function checkEmailcode(emailCode) {
  const res = emailCode
  const reg = /^[0-9]{6}$/
  return reg.test(res)
}
